Add linker script for symbols export
authorFélix Piédallu <felix@piedallu.me>
Tue, 28 Nov 2017 14:53:04 +0000 (15:53 +0100)
committerØyvind Kolås <pippin@gimp.org>
Sat, 16 Dec 2017 01:44:00 +0000 (02:44 +0100)
babl.map [new file with mode: 0644]
babl/meson.build
meson.build

diff --git a/babl.map b/babl.map
new file mode 100644 (file)
index 0000000..bacbbea
--- /dev/null
+++ b/babl.map
@@ -0,0 +1,76 @@
+V0_1_0 {
+    global:
+        babl_component;
+        babl_component_new;
+        babl_conversion_get_destination_space;
+        babl_conversion_get_source_space;
+        babl_conversion_new;
+        babl_cpu_accel_get_support;
+        babl_exit;
+        babl_fast_fish;
+        babl_fish;
+        babl_format;
+        babl_format_exists;
+        babl_format_get_bytes_per_pixel;
+        babl_format_get_model;
+        babl_format_get_n_components;
+        babl_format_get_space;
+        babl_format_get_type;
+        babl_format_has_alpha;
+        babl_format_is_format_n;
+        babl_format_is_palette;
+        babl_format_n;
+        babl_format_new;
+        babl_format_with_space;
+        babl_free;
+        babl_get_name;
+        babl_get_name;
+        babl_get_user_data;
+        babl_get_version;
+        babl_icc_make_space;
+        babl_icc_get_key;
+        babl_init;
+        babl_introspect;
+        babl_malloc;
+        babl_model;
+        babl_model_new;
+        babl_new_palette;
+        babl_palette_reset;
+        babl_palette_set_palette;
+        babl_process;
+        babl_process;
+        babl_sampling;
+        babl_set_user_data;
+        babl_space;
+        babl_space_from_xyz;
+        babl_space_get_rgbtoxyz;
+        babl_space_to_xyz;
+        babl_ticks;
+        babl_type;
+        babl_type_new;
+        babl_space_to_icc;
+        babl_db_exist_by_name;
+        babl_db_find;
+        babl_db_init;
+        babl_db_exist_by_id;
+        babl_db_each;
+        babl_formats_count;
+        babl_format_class_for_each;
+        babl_model_class_for_each;
+        babl_type_class_for_each;
+        babl_conversion_class_for_each;
+        babl_set_extender;
+        babl_extension_quiet_log;
+        babl_fish_path;
+        babl_extender;
+        babl_class_name;
+        babl_sanity;
+        babl_type_is_symmetric;
+        babl_model_is_symmetric;
+        babl_fish_db;
+        babl_polynomial_approximate_gamma;
+        babl_backtrack;
+
+    local:
+        *;
+};
index 5d783ebb601c7cdfe8d877088b40020b33262f06..c335d634fc85c88cea4744533791f4ebbf71cb87 100644 (file)
@@ -84,6 +84,7 @@ babl = library('babl',
   c_args:   [ '-DLIBDIR="' + get_option('libdir') + '"', ],
   cpp_args: [ '-DLIBDIR="' + get_option('libdir') + '"', ],
   link_with: [ babl_base, ],
+  link_args: [ '-Wl,--version-script,' + version_script, ],
   dependencies: [ math, thread, dl, ],
   install: true,
   version: so_version,
index 01cf491f4d2237f8145e11f60a862e8d5351d367..3ea038dc5500cef4b2a75cd7ff2d78391b431803 100644 (file)
@@ -240,6 +240,9 @@ configure_file(
 # Subdirs
 
 rootInclude = include_directories('.')
+version_script = join_paths(
+  meson.source_root(), meson.current_source_dir(), 'babl.map'
+)
 
 subdir('babl')
 subdir('extensions')